<?php

// +----------------------------------------------------------------------
// | ShuipFCMS 后台模块公共方法
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2014 http://www.jsy360.com, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 神通教育
// +----------------------------------------------------------------------

namespace Admin\Controller;

use Common\Controller\AdminBase;

class PhoneController extends AdminBase {
    public function index()
    {
        $where = array();
        $count = M('phone')->where($where)->count();
        $page = $this->page($count, 20);
        $list =  M('phone')->where($where)->limit($page->firstRow . ',' . $page->listRows)->order(array('id' => 'DESC'))->select();
        $this->assign("list", $list);
        $this->assign("Page", $page->show());
        $this->display();
    }

}
